package com.lovo.test.pojo;

import java.io.Serializable;

public class UserDO implements Serializable {
    private int id;//用户id
    private String userName;//用户名
    private String passWord;//密码
    private int money;//余额


    //以下是构造器
    public UserDO(){

    }

    public UserDO(String userName, String passWord, int money) {
        this.userName = userName;
        this.passWord = passWord;
        this.money = money;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", money=" + money +
                '}';
    }

    //以下是get 和set


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
